package com.search.service;

public class AddService {

    int num = 0;

    public int add() throws InterruptedException {
        do{
            num++;
            Thread.sleep(100);
        }while (num<100);

       return num;
    }
}
